package com.cg.service.impl;

import com.cg.entity.Dictionary;
import com.cg.dao.DictionaryMapper;
import com.cg.service.DictionaryService;

import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import java.util.List;

/**
 * (Dictionary)表服务实现类
 *
 * @author chengong
 * @since 2023-12-01 10:24:31
 */
@Service("dictionaryService")
public class DictionaryServiceImpl implements DictionaryService {
    @Resource
    private DictionaryMapper dictionaryMapper;


    /**
     * 根据type表的typeCode查询Dictionary类型
     */
    @Override
    public List<Dictionary> queryDicByTypeCode(String typeCode) {
        return dictionaryMapper.queryDicByTypeCode(typeCode);
    }
}
